package com.sskj.mine.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;
import com.sskj.mine.bean.CqtfBean;
import com.sskj.mine.http.HttpConfig;
import com.sskj.mine.ui.activity.MineRechargeActivity;


public class MineRechargeActivityPresenter extends BasePresenter<MineRechargeActivity> {
    // 充值
    public void rechargeImg() {
        httpService.rechargeImg().execute(new JsonCallBack<HttpData<CqtfBean>>(this) {
            @Override
            public void onSuccess(Response<HttpData<CqtfBean>> response) {
                HttpData<CqtfBean> httpData = response.body();
                if (httpData.getStatus() == HttpConfig.OK) {
                    mView.updateUi(httpData.getData());
                }
            }
        });
    }
}
